FROM openjdk:8u201-jdk-alpine3.9
RUN echo -e "https://mirror.tuna.tsinghua.edu.cn/alpine/v3.4/main\n\
https://mirror.tuna.tsinghua.edu.cn/alpine/v3.4/community" > /etc/apk/repositories
RUN apk add fontconfig&&apk add --update ttf-dejavu&&fc-cache --force

ADD orangemall-shop-0.0.1-SNAPSHOT.jar /app.jar

EXPOSE 8087

CMD ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
